Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until after peer relation joined before acquiring lock #276

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

carlcsaposs-canonical
Copy link
Contributor

Issue

During initial startup (i.e. scale-up), a unit will request a lock via the peer databag until it gets a peer-relation-joined event and learns that other units of OpenSearch are online

Solution

Wait until after the first peer-relation-joined event before trying to acquire lock (so that if [enough] units of opensearch are online, we request the opensearch lock instead of peer databag lock)

Mehdi-Bendriss
Mehdi-Bendriss previously approved these changes Apr 30, 2024
## Issue
During initial startup (i.e. scale-up), a unit will request a lock via the peer databag until it gets a peer-relation-joined event and learns that other units of OpenSearch are online

## Solution
Wait until after the first peer-relation-joined event before trying to acquire lock (so that if [enough] units of opensearch are online, we request the opensearch lock instead of peer databag lock)
@carlcsaposs-canonical carlcsaposs-canonical changed the base branch from main to fix-defer-peer-changed May 2, 2024 10:13
Mehdi-Bendriss
Mehdi-Bendriss previously approved these changes May 2, 2024
Base automatically changed from fix-defer-peer-changed to main May 2, 2024 11:56
@Mehdi-Bendriss Mehdi-Bendriss dismissed their stale review May 2, 2024 11:56

The base branch was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants